package 策略模式;

/**
 * 狗的策略模式上下文
 */
public class DogBehaviorContext {

    private Dog dog;

    public DogBehaviorContext(Dog dog) {
        this.dog = dog;
    }

    public void setDog(Dog dog) {
        this.dog = dog;
    }

    public void everyDay() {
        this.dog.eat();
        this.dog.dance();
        this.dog.sleep();
    }
}
